package cn.com.connected.common.emnus;

/**
 * @author 邵明生
 * @version 3.0
 * @Description
 * @date 2020-09-08 16:42
 **/
public class CacheKey {

    public static int minute = 60;
    public static int hour = 60*minute;
    public static int day = 24*hour;
    public static int weak = 7*day;
    public static int month = 4*weak;
    public static int year = 12*month;

    //短信验证码长度
    public static int SMS_LENGTH = 6;

    //短信最大尝试次数
    public static int SMS_MAX_ERROR_COUNT = 3;

    //短信过期时间 两分钟
    public static int SMS_EXPIRE_TIME = 120;

    //短信存储key
    public static String SMS = "open:sms:{smsType}:{mobile}";

    //短信尝试次数存储key
    public static String SMS_ERRORS = "open:sms:{smsType}:{mobile}:error";

    //用户token
    public static String LOGIN_TOKEN = "user:{userId}:token";

    //用户token
    public static String IMAGE_CODE = "open:ic:{uu1}";

    //用户token
    public static String WX_ACCESS_TOKEN = "wx:accessToken:{accessToken}";

    //阿里授权缓存
    public static String AUTHORIZE_CACHE = "aliyun:authorize:{urlMd5}";

    public static String POLICY_CACHE = "aliyun:policy:{urlMd5}";

    //消息推送记录 id 为 快递id或者栏目id 有效期有一周
    //承接
    public static String PUSH_MSG_1 = "msg:{id}:1";
    //取件
    public static String PUSH_MSG_2 = "msg:{id}:2";
    //送达
    public static String PUSH_MSG_3 = "msg:{id}:3";

    //百度敏感词access_token
    public static String baidu_access_token = "baidu:access:token";

    //表白墙图片检测trace_id 回调后处理数据记录 value为记录ID
    public static String wechat_trace_wall_id = "wechat:trace:wall:{id}";

}
